﻿<Application
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" 
    x:Class="NearChat.App"
    >

    <!--Application Resources-->
    <Application.Resources>
        <Style TargetType="Canvas" x:Key="ListaPreferiti">
            <Setter Property="Height" Value="130"/>
            <Setter Property="Width" Value="440"/>
            <Setter Property="VerticalAlignment" Value="Top"/>
            <Setter Property="Background" Value="#4CFFFFFF"/>
            <Setter Property="Margin" Value="0,5,0,5"/>
        </Style>
        <Style TargetType="Border" x:Key="BorderCanvas">
            <Setter Property="Height" Value="130"/>
            <Setter Property="Width" Value="440"/>
            <Setter Property="BorderBrush" Value="#FF1F3D3C"/>
            <Setter Property="BorderThickness" Value="3"/>
            <Setter Property="Background" Value="Transparent"/>
        </Style>
        <Style TargetType="Border" x:Key="ImgProfilo">
            <Setter Property="Canvas.Top" Value="32"/>
            <Setter Property="Canvas.Left" Value="8"/>
            <Setter Property="Width" Value="90"/>
            <Setter Property="Height" Value="90"/>
            <Setter Property="BorderThickness" Value="3"/>
            <Setter Property="BorderBrush" Value="#FF1F3D3C"/>
            <Setter Property="BorderThickness" Value="3"/>     
        </Style>
        <Style TargetType="TextBlock" x:Key="Name">
            <Setter Property="Canvas.Top" Value="3"/>
            <Setter Property="Canvas.Left" Value="8"/>
            <Setter Property="Height" Value="25"/>
            <Setter Property="Width" Value="430"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="Foreground" Value="#FF1F3D3C"/>
        </Style>
        <Style TargetType="ToggleButton" x:Key="Preferiti">
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Canvas.Top" Value="32"/>
            <Setter Property="Height" Value="90"/>
            <Setter Property="Width" Value="90"/>
            <Setter Property="BorderBrush" Value="{x:Null}" />
            <Setter Property="Canvas.Left" Value="140"/>
        </Style>
        <Style TargetType="ToggleButton" x:Key="BlackList">
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Canvas.Top" Value="32"/>
            <Setter Property="Height" Value="90"/>
            <Setter Property="Width" Value="90"/>
            <Setter Property="BorderBrush" Value="{x:Null}" />
            <Setter Property="Canvas.Left" Value="234"/>
        </Style>
        <Style TargetType="Button" x:Key="Profile">
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Canvas.Top" Value="32"/>
            <Setter Property="Height" Value="90"/>
            <Setter Property="Width" Value="90"/>
            <Setter Property="BorderBrush" Value="{x:Null}" />
            <Setter Property="Canvas.Left" Value="328"/>
        </Style>
        
        <!--STILE new Msssages-->
        <Style TargetType="Border" x:Key="NewMessageBorder">
            <Setter Property="Height" Value="30"/>
            <Setter Property="Width" Value="30"/>
            <Setter Property="Canvas.Top" Value="5"/>
            <Setter Property="Canvas.Left" Value="405"/>
            <Setter Property="Background" Value="Red"/>
            <Setter Property="CornerRadius" Value="50"/>
        </Style>
        <Style TargetType="TextBlock" x:Key="NewMessageText">
            <Setter Property="Margin" Value="0"/>
            <Setter Property="TextAlignment" Value="Center"/>
            <Setter Property="Foreground" Value="White"/>
        </Style>
        
        <!--stili Chat-->
        <Style TargetType="Border" x:Key="myTextBorder">
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="MinHeight" Value="60"/>
            <Setter Property="Width" Value="345"/>
            <Setter Property="Margin" Value="70,15,0,0"/>
            <Setter Property="BorderBrush" Value="#FF0084FF"/>
            <Setter Property="Background" Value="#990084E1"/>
        </Style>
        <Style TargetType="Border" x:Key="yourTextBorder">
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="MinHeight" Value="60"/>
            <Setter Property="Width" Value="345"/>
            <Setter Property="Margin" Value="0,15,0,0"/>
            <Setter Property="BorderBrush" Value="White"/>
            <Setter Property="Background" Value="#97FFFFFF"/>
        </Style>
        <Style TargetType="TextBlock" x:Key="MessageText">
            <Setter Property="Margin" Value="7"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="Foreground" Value="Black"/>
        </Style>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>